/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assign2.dipcomplies;

/**
 *
 * @author Sisanda
 */
public class Managefunds 
{
    TransferFrom from;
    TransferTo too;
    double amount;
    
    public void setFrom(TransferFrom from)
    {
        this.from = from;
    }
    public TransferFrom getFrom()
    {
        return from;
    }
    
    public void setToo(TransferTo too)
    {
        this.too = too;
    }
    public TransferTo getToo()
    {
        return too;
    }
    public void setAmount(double amount)
    {
        this.amount = amount;
    }
    public double getAmount()
    {
        return amount;
    }
    public void transfer()
    {
        from.remove(amount);
        too.add(amount);
    }
    
}
